﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Contract.Data;

namespace DotNetChatServer.Contract
{
    
    [ServiceContract(Namespace = "http://DotNetChat.server.com")]
    public interface IChatServer
    {
        [OperationContract]
        ChatMember Login(string userName, int avatar);

        [OperationContract]
        void Logout(ChatMember member);

        [OperationContract]
        void AddMessage(ChatMessage msg);

        [OperationContract]
        List<ChatMessage> GetMessages();
     
    }
}
